package com.zw.mes.entity.shipments;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zw.mes.base.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;
import java.util.Date;

/**
 * @Description: 发货清单明细表
 * @Author: liqingyu
 * @Author: liqingyu
 * @Date: 2020/7/30 9:42
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Table(name = "inst_shipments_detail")
public class InstShipmentsDetail extends BaseModel {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    /**
     * 外键
     */
    private Integer sheetId;
    /**
     * 零件名称
     */
    private String drawName;
    /**
     * 型号
     */
    private String drawNo;
    /**
     * 项目名称
     */
    private String prodName;
    /**
     * 零件数量
     */
    private Integer drawNum;
    /**
     * 单位
     */
    private String unit;
    /**
     * 说明/备注
     */
    private String remark;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime;
    /**
     * 是否可用0=可用，1=不可用
     */
    private Integer isDel;


}